//
//  PaymoneyTitleTableViewCell.m
//  PropertyManager
//
//  Created by 楠 on 2018/10/21.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import "PaymoneyTitleTableViewCell.h"

@implementation PaymoneyTitleTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self creatUI];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = SFM242;
    }
    return self;
}

-(void)creatUI{
    [self.contentView addSubview:self.titleLabel];
    [self.contentView addSubview:self.detailLabel];
    [self.contentView addSubview:self.moneyLabel];
}

-(UILabel *)titleLabel
{
    if (_titleLabel == nil) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 15, WIDTH , 25)];
        _titleLabel.font = font(16);
        _titleLabel.textColor = SFM51;
        _titleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _titleLabel;
}

-(UILabel *)detailLabel
{
    if (_detailLabel == nil) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 45, WIDTH , 20)];
        _titleLabel.font = font(14);
        _titleLabel.textColor = SFM153;
        _titleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _detailLabel;
}

-(UILabel *)moneyLabel
{
    if (_moneyLabel == nil) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 70, WIDTH , 30)];
        _titleLabel.font = font(18);
        _titleLabel.textColor = [UIColor redColor];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _moneyLabel;
}

-(void)send
{
    self.titleLabel.text = @"广百展贸物业4月份缴费通知单";
    self.detailLabel.text = @"物业管理处名称";
    self.moneyLabel.text = [NSString stringWithFormat:@"共计：%@元",@"2100"];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
